package com.mapper;

import com.pojo.Repairs;
import com.vo.RepairsVo;
import com.vo.repairsStateVo;

import java.util.List;

public interface RepairsMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Repairs record);

    int insertSelective(Repairs record);

    Repairs selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Repairs record);

    int updateByPrimaryKey(Repairs record);

    /***
     * 业主维修查询（未派单）
     * @param repairsVo
     * @return
     */
    public List<Repairs> selectRepairsByVo(RepairsVo repairsVo);

    /***
     * 修改状态
     * @param repairsStateVo
     * @return
     */
    public int updatesatae(repairsStateVo repairsStateVo);

    /***
     * 业主查询报修记录（已派单）
     * @param repairsVo
     * @return
     */
    public List<Repairs> selectRecording(RepairsVo repairsVo);

    /***
     * 物业查询未完成的报修
     * @param repairsVo
     * @return
     */
    public List<Repairs> selectAllRepairs( RepairsVo repairsVo);

    /***
     * 物业查询所有报修任务（已派单）
     * @param repairsVo
     * @return
     */
    public List<Repairs> selectAllRecordingJob(RepairsVo repairsVo);

    public int updateEmployee(repairsStateVo repairsStateVo);
    public List<Repairs> selectAllRepairing(RepairsVo repairsVo);

    /***
     * 详情
     * @param id
     * @return
     */
    public Repairs selectRepairsDetails(Integer id);
    public List<Repairs> selectReparisByElefinish(RepairsVo repairsVo);


    /**
     * 查询最近10条报修
     */
    public List<Repairs> selecttoptenrepairs();



}